package com.hao.order.app.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/23 14:12
 */
@FeignClient(value = "app-user")
public interface UserFeign {
    @GetMapping("/api/user/isLogin")
    Long isLogin();

    @PostMapping("/api/user/decrease")
    boolean decreaseBalance(@RequestParam Long id, @RequestParam Double totalNum);

    @GetMapping ("/api/user/address")
    String getUserAddress(@RequestParam Long id);
}
